package com.yicong.ants.bean.circle;

/**
 * @author cch
 * @version 2020/11/10
 */
public class RewardRank {


    /**
     * from_uid : 10000004
     * amount : 31.20
     * id : 10000004
     * avatar : http://ant.qiniu.yblylm.com/uploads/20200925/a52ccfffdb6902adc469678319b2ef80.jpeg
     * nickname : 北城
     */

    private Integer from_uid;
    private String amount;
    private Integer id;
    private String avatar;
    private String nickname;

    public RewardRank() {
    }

    public Integer getFrom_uid() {
        return this.from_uid;
    }

    public String getAmount() {
        return this.amount;
    }

    public Integer getId() {
        return this.id;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public String getNickname() {
        return this.nickname;
    }

    public void setFrom_uid(Integer from_uid) {
        this.from_uid = from_uid;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof RewardRank)) return false;
        final RewardRank other = (RewardRank) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$from_uid = this.getFrom_uid();
        final Object other$from_uid = other.getFrom_uid();
        if (this$from_uid == null ? other$from_uid != null : !this$from_uid.equals(other$from_uid))
            return false;
        final Object this$amount = this.getAmount();
        final Object other$amount = other.getAmount();
        if (this$amount == null ? other$amount != null : !this$amount.equals(other$amount))
            return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$avatar = this.getAvatar();
        final Object other$avatar = other.getAvatar();
        if (this$avatar == null ? other$avatar != null : !this$avatar.equals(other$avatar))
            return false;
        final Object this$nickname = this.getNickname();
        final Object other$nickname = other.getNickname();
        if (this$nickname == null ? other$nickname != null : !this$nickname.equals(other$nickname))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof RewardRank;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $from_uid = this.getFrom_uid();
        result = result * PRIME + ($from_uid == null ? 43 : $from_uid.hashCode());
        final Object $amount = this.getAmount();
        result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
        final Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final Object $avatar = this.getAvatar();
        result = result * PRIME + ($avatar == null ? 43 : $avatar.hashCode());
        final Object $nickname = this.getNickname();
        result = result * PRIME + ($nickname == null ? 43 : $nickname.hashCode());
        return result;
    }

    public String toString() {
        return "RewardRank(from_uid=" + this.getFrom_uid() + ", amount=" + this.getAmount() + ", id=" + this.getId() + ", avatar=" + this.getAvatar() + ", nickname=" + this.getNickname() + ")";
    }
}
